package com.atguigu.classes.preconditions;

/**
 * @program: myIDEA
 * @description: 遍历二维数组
 * @author: Mr.zjx
 * create: 2021-07-06-16-59
 **/
public class 遍历二维数组 {
    public static void main(String[] args) {
        int[][] arr = { {1,2},{3,4,5},{6,7,8,9,0} };
        for(int i = 0;i <arr.length;i++){
            for(int j = 0; j < arr[i].length;j++){
                System.out.print(arr[i][j]);
            }
            System.out.println();
        }
    }
}
